class Person {
    // 成员修饰符的语法糖
    constructor(public name: string, public age: number,readonly id:string) {
        this.name = name
        this.age = age
        this.id=id
    }
}

const p = new Person("陶品奇", 22,'1')
console.log(p);
